<?php
require('header.php');
$auth = $user->getAttribute('auth');
?>
<script language="javascript">
function submitthis()
{
    document.adminForm.submit();
}
</script>
<body>
<form action="?module=<?=DEFAULT_MODULE?>&action=DefaultIndex" method="post" name="adminForm">
<table width="100%" class="menubar" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td class="menudottedline" width="40%">
            <div class="pathway"><font size="2px" color="#000033"><b><?=$config['version']?></b></font></div>       
        </td>
        <td class="menudottedline" align="right">
            <table cellpadding="0" cellspacing="0" border="0" id="toolbar">
                <tr height="60" valign="middle" align="center">
                    <td>
                        <a class="toolbar" href="#">
                        <img src="<?=WEB_MODULE_DIR?>images/help_f2.png" 
                             align="middle" name="new" border="0"><br>Help
                        </a>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br>
<br>
<div align="center" class="centermain">
    <div class="main">
        <table class="adminheading">
            <tr>
                <th class="cpanel" rowspan="2" nowrap>Poll Management&nbsp;<font size="1px" color="#CCCCCC">[<?=strtoupper($auth['privilege'])?>]</font></th>
            </tr>
        </table>

        <table class="adminform">
            <tr>
                <!-- SYSTEM SHORTCUTS  -->
                <td width="50%" valign="top">
                    <div id="cpanel">
                        <div style="float: left">
                            <div class="icon">
                                <a class="toolbar" href="?module=<?=DEFAULT_MODULE?>&action=DefaultIndex">
                               <!-- <a class="toolbar" href="javascript: document.getElementById('flag').value='new'; submitthis();">-->
                                <img src="<?=WEB_MODULE_DIR?>images/frontpage.png" 
                                     align="middle" name="new" border="0"><br>Main
                                </a>
                            </div>
                        </div>
                        <div style="float: left">
                            <div class="icon">
                                <a class="toolbar" href="?module=<?=DEFAULT_MODULE?>&action=Poll">
                                <img src="<?=WEB_MODULE_DIR?>images/langmanager.png" align="middle" name="new" border="0"><br>Create Poll</a>
                            </div>
                        </div>
                        <div style="float: left">
                            <div class="icon">
                                <a class="toolbar" href="?module=<?=DEFAULT_MODULE?>&action=PollResult">
                                <img src="<?=WEB_MODULE_DIR?>images/generic.png" 
                                     align="middle" name="new" border="0"><br>Poll Results
                                </a>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
<?php require('footer.php'); ?>
